﻿using Ducu.BLL.Entity;
using Ducu.GLB.Global;
using Ducu.SRV.ServiceInteface;
using Ducu.SRV.ViewModel.Shared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using Global.Core.ExtensionMethod;

namespace Ducu.SRV.ProdService
{
    public class SharedService : BaseService, ISharedService
    {
        public _NavigatorModel GetNavigator()
        {
            _NavigatorModel model = new _NavigatorModel();

            User currentUser = getCurrentUser();
            if (currentUser != null)
            {
                model.UserId = currentUser.Id;
                model.UserName = currentUser.Profile.DisplayName;
            }

            return model;
        }
    }
}
